package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 监考记录实体类
 *
 * @author ahuan
 */
@Data
@TableName("exam_monitoring_logs")
@EqualsAndHashCode(callSuper = true)
public class ExamMonitoringLog extends BaseModel {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("group_id")
    private Long groupId;

    @TableField("exam_id")
    private Long examId;

    @TableField("session_id")
    private Long sessionId;

    @TableField("user_id")
    private Long userId;

    @TableField("event_type")
    private String eventType;

    @TableField("screenshot")
    private String screenshot;

    @TableField("handle_by")
    private Long handleBy;

    @TableField("handle_result")
    private String handleResult;

    @TableField("device_info")
    private String deviceInfo;

    @TableField("ip_address")
    private String ipAddress;

    @TableField("event_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date eventTime;

    @TableField("event_details")
    private String eventDetails;
}